Skip to content

fix: allow inventory selectors with session locks#583

Merged
thymikee merged 5 commits into
mainfrom
codex/exempt-inventory-lock-policy
May 25, 2026
Merged

fix: allow inventory selectors with session locks#583
thymikee merged 5 commits into
mainfrom
codex/exempt-inventory-lock-policy

Conversation

@thymikee
Copy link
Copy Markdown
Member

Summary

Allow read-only inventory commands to keep explicit device selectors when a session lock policy is active. Before this change, commands such as apps --device "iPhone 17" could be rejected as a session-lock override even though inventory lookup is not mutating the active session.

The daemon now exempts apps and devices from lock-policy selector conflicts, and request-scoped providers follow explicit apps selectors instead of the bound session device. Scope stayed within daemon request policy/provider handling and focused regression tests. Touched files: 4.

Validation

Verified with focused lock-policy/provider tests, pnpm check:quick, pnpm check:unit outside the sandbox, and pnpm build. The unit bundle passed 213 test files / 1834 tests, and smoke tests passed 6/6.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 25, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-583/

Built to branch gh-pages at 2026-05-25 16:50 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ffa6741b7c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/daemon/request-lock-policy.ts Outdated
@thymikee thymikee merged commit bda96f1 into main May 25, 2026
19 checks passed
@thymikee thymikee deleted the codex/exempt-inventory-lock-policy branch May 25, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant